﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="GoodBackManager.aspx.cs" Inherits="GoodBackManager" %>
<%@ Register Src="GoodBackItems.ascx" TagName="GoodBackItems" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
<asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
<div class="searchDiv" >
           <table cellspacing="0" class="searchTable">
            <tr>
                <td>
                回收单号：
                </td>
                <td>
                <asp:TextBox ID="S_GoodBackCode" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                回收日期：
                </td>
                <td>
                <asp:TextBox ID="S_GoodBackDate" runat="server" onfocus="calendar.ShowCaltable(this, event);" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td> 
                <td>
                    &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 查询 "  CssClass="searchButton" />
                </td>
            </tr>
            </table>
     </div>
    <div class="webPanelBorder" >
        <div class="webPanelCaption">物料回收管理</div>
        <div class="webPanelContent">
            <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
                OnRowDataBound="gridView_RowDataBound" 
                onsplitpageindexchange="gridView_SplitPageIndexChange">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <input ID="GoodBackID" checked="checked" name="GoodBackID" type="radio" 
                                value='<%#DataBinder.Eval(Container.DataItem,"GoodBackID")%>' />
                            <asp:HiddenField ID = "HiddenField1" runat="server" Value='<%#Eval("GoodBackID") %>' /> 
                        </ItemTemplate>
                        <HeaderStyle Width="40px" />
                    </asp:TemplateField>
                    <asp:HyperLinkField DataTextField="GoodBackCode" HeaderText="回收单号" NavigateUrl="#"/>
                    <asp:BoundField DataField="GoodBackDate" HeaderText="回收日期" /> 
                    <asp:BoundField DataField="UserName" HeaderText="经办人" />
                    <asp:BoundField DataField="OrgName" HeaderText="经办部门" />
                    <asp:BoundField DataField="CreateUserName" HeaderText="录入人" />
                    <asp:BoundField DataField="CreateTime" HeaderText="录入日期" />
                </Columns>
            </ofcc:GridView>
         </div>
    </div>
    <div class="webPanelButtonArea">
        <ofcc:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" CssClass="linkButton" >新建回收单</ofcc:LinkButton>
        <ofcc:LinkButton ID="btnView" runat="server" OnClick="btnView_Click" CssClass="linkButton" >查看回收单</ofcc:LinkButton>
        <ofcc:LinkButton ID="btnRemove" runat="server"  ConfirmMessage="确定要删除吗?" OnClick="btnRemove_Click" CssClass="linkButton" >删除回收单</ofcc:LinkButton>
    </div>
</asp:Panel>
<asp:Panel ID="pnlEdit" runat="server" Width="95%" Visible="false" CssClass="centerPanel">
     <uc1:GoodBackItems ID="GoodBackItems" runat="server"/>
</asp:Panel>
</asp:Content>

